"""
  获取浏览器的 User-Agent
"""

from flask import Flask, request

app = Flask(__name__)

@app.route('/')
def index():
    user_agent = request.headers.get('User-Agent')
    return f'您的 User-Agent 是: {user_agent}'

if __name__ == '__main__':
    app.run()
